﻿namespace Traffic.Entity;

/// <summary>
/// 微信平台参数
/// </summary>
public partial class WeChatParam
{
    public int Id { get; set; }

    /// <summary>
    /// 公司ID
    /// </summary>
    public int CompanyId { get; set; }

    /// <summary>
    /// 平台名称 小程序、公众号
    /// </summary>
    public string Platform { get; set; } = null!;

    /// <summary>
    /// APPID
    /// </summary>
    public string AppId { get; set; } = null!;

    /// <summary>
    /// SECRET
    /// </summary>
    public string Secret { get; set; } = null!;

    /// <summary>
    /// 微信支付商户号ID
    /// </summary>
    public string MchId { get; set; } = null!;

    /// <summary>
    /// 支付KEY
    /// </summary>
    public string PayKey { get; set; } = null!;

    /// <summary>
    /// SSL证书路径
    /// </summary>
    public string? SslCertPath { get; set; }

    /// <summary>
    /// ACCESS_TOKEN
    /// </summary>
    public string? AccessToken { get; set; }

    /// <summary>
    /// JS_API_TICKET
    /// </summary>
    public string? JsApiTicket { get; set; }

    /// <summary>
    /// 令牌超时时间（秒）
    /// </summary>
    public int TokenExpireTime { get; set; }

    /// <summary>
    /// 票据超时时间（秒）
    /// </summary>
    public int TicketExpireTime { get; set; }

    /// <summary>
    /// 获取令牌时间
    /// </summary>
    public long GetTokenTime { get; set; }

    /// <summary>
    /// 获取票据时间
    /// </summary>
    public long GetTicketTime { get; set; }

    /// <summary>
    /// 平台类型 0：微信小程序  1：微信公众号
    /// </summary>
    public int PlatformType { get; set; }
}
